<script type="text/javascript" language="javascript" src="<?=base_url()?>public/js/jquery.validate.js"></script>
<?php
	$attrib = array('name' => 'frm', 'onsubmit' => '' );
	echo form_open(('sub/do_forgotpin/'),$attrib);
?>
<table border="0" cellspacing="1" cellpadding="1" class="tbl">
  <tr>
  	<td colspan="2"><?= $this->lang->line('forget_detail')?></td>
  </tr>
  <tr>
    <td align="right"><label for="contact_number"><?= $this->lang->line('signin_contact')?>:</label></td>
    <td>
    	<?php
			$option = array(
								'' => $this -> lang -> line("forget_prefix"),
								'85590' => '090',
								'85566' => '066',
								'85567' => '067',
								'85568' => '068',
								'8552346' => '02346',
								'8552446' => '02446',
								'8552546' => '02546',
								'8552646' => '02646',
								'8553246' => '03246',
								'8553346' => '03346',
								'8553446' => '03446',
								'8553546' => '03546',
								'8553646' => '03646',
								'8554246' => '04246',
								'8554346' => '04346',
								'8554446' => '04446',
								'8554546' => '04546',
								'8555246' => '05246',
								'8555346' => '05346',
								'8555446' => '05446',
								'8555546' => '05546',
								'8556246' => '06246',
								'8556346' => '06346',
								'8556446' => '06446',
								'8556546' => '06546',
								'8557246' => '07246',
								'8557346' => '07346',
								'8557446' => '07446',
								'8557546' => '07546'
							);
			$more = 'id = "prefix" class="text"';
			echo form_dropdown('prefix', $option, $this -> session -> userdata('ses_prefix'), $more);
		?>
    </td>
  </tr>
  <tr>
  	<td>&nbsp;</td>
    <td><input type="text" name="number" style="width:182px"  value="<?php echo $this -> session -> userdata('ses_number');?>" class="text input required number" /></td>
  </tr>
  <tr>
  	<td align="right"><?= $this->lang->line('forget_bid_number')?> :</td>
    <td><?php 
		$opt = array();
		$opt[''] = $this -> lang -> line("forget_choose_number");
		foreach($msisdn as $row)
		{
			$value = $row['MSISDN'];
			$opt[$value] = $row['MSISDN'];
		}
		$more = 'class="input text required" id="MSISDN"';
		echo form_dropdown('msisdn',$opt, $this -> session -> userdata('ses_msisdn'), $more);
    ?></td>
  </tr>
  <tr>
    <td align="right"><label for="captcha" style="border:none" ><?= $this->lang->line('forget_word_verification')?> :</label></td>
    <td><label for="captcha"><?= $this->lang->line('forget_type_word')?>:</label></td>
  </tr>
  <tr>
  	<td>&nbsp;</td>
    <td><?php echo($cap_img);?><br/></td>
  </tr>
  <tr>
	<td>&nbsp;</td>
	<td>
		<input type="text" name="captcha" id="captcha" value="" class="text input required" /><br/>
		<label for="captcha" class='grey'><?= $this->lang->line('forget_letter_case')?></label>
	</td>
  </tr>
  <tr>
  	<td>&nbsp;</td>
    <td><input type="submit" style="background:url('<?php echo base_url()."public/images/submit.png";?>'); width:71px; height:28px; border:none" value="" /></td>
  </tr>
  <tr>
  	<td colspan="2"><?= $this->lang->line('forget_never_register')?> <a href="<?php echo site_url('/sub/show_register')?>"><?= $this->lang->line('forget_click_here')?></a></td>
  </tr>
</table>
</form>
<script type="text/javascript">
	$(document).ready(function(){
		$("form[name=frm]").validate();
	});
</script>
